package com.my.coolq.strategy.event.impl;

import java.util.Map;

import org.springframework.stereotype.Component;

import com.my.coolq.strategy.ReceiveMessagesHandleStrategy;
import com.my.coolq.strategy.event.model.GroupUploadEvent;
import com.my.util.MapUtils;
/**
 * 群文件上传 	注意：仅群文件上传表现为事件，好友发送文件在酷 Q 中没有独立的事件，而是直接表现为好友消息，请注意在编写业务逻辑时进行判断。
 * @author ch
 *
 */
@Component
public class GroupUploadEventHandleStrategy implements ReceiveMessagesHandleStrategy{

	private static final String REQUEST_TYPE="event_group_upload";
	
	@Override
	public String getPostType() {
		return REQUEST_TYPE;
	}

	@Override
	public Object handle(Map<String, Object> params) {
		try {
			
			GroupUploadEvent event = MapUtils.toObject(GroupUploadEvent.class, params);
		}
		catch (Exception e) {
		}
		return null;
	}
}
